package com.ruoyi.business.payment.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 读取项目相关配置
 *
 * @author sgchen
 */
@Component
@ConfigurationProperties(prefix = "payment")
@Data
public class PaymentConfig {

    /**
     * 开启支付
     */
    private boolean openPay;

    /**
     * 支付中心路径
     */
    private String serviceApi;

    /**
     * appid
     */
    private String appid;
    /**
     * appkey
     */
    private String appkey;
    /**
     * 版本号
     */
    private String version;
    /**
     * 支付回调地址
     */
    private String payNotifyUrl;
    /**
     * 退款回调地址
     */
    private String refundNotifyUrl;

    private String chargeCode;
    /**
     * 进修费
     */
    private String chargeName;

    private String std;

    private String operator;

    private String templateCode;

    private String payDataType;

}
